<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div>我的名字叫：<%=name%></div>
  <div><%= 5+7 %></div>
  <div><%= jsonData.user %>：<%= jsonData.pass %></div>
  <div><%= arrData[0] %></div>
  <% for (var i=0; i<arrData.length; i++) { %>
    <div><%= arrData[i] %></div>
  <% } %>
  <!-- 追加HTML的输出：改 = 为 - -->
  <% var htmlStr='<div>不编译HTML标签原生输出</div>' %>
  <%- htmlStr %>
  <!-- 引入其它文件内容：include不支付变量 -->
  <div><% include a.txt %></div>
</body>

</html>
